class CPerson{

    private int age;
    private String name;

    public CPerson(int age, String name){
        this.age = age;
        this.name = name;
    }

    public void display(){
        System.out.println("我是"+this.name+", 今年"+this.age+"岁了！");
    }

    public static void main(String [] args){
        CPerson cp = new CTeacher("计算机","教授")

        if(cp instanceof CPerson){

                cp.display();

        }else if(cp instanceof CTeacher){
            CTeacher ct = (CTeacher)cp;

            stu.display();
        }
    }
}